﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using iTeachSoft.CoreObjects.Recording;
using iTeachSoft.Presentation.Code.Managers;

namespace iTeachSoft.Presentation
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App()
            : base()
        {
            this.Exit += new ExitEventHandler(App_Exit);
        }

        void App_Exit(object sender, ExitEventArgs e)
        {
            //Be sure we uninstall the windows hook
            RecordingManager.EndRecording();
        }
    }
}
